<template>
  <div class="left-col">
    <div class="overlay">
      <img src="https://p.pstatp.com/origin/febd000185ec2da4425e"/>
    </div>
    <el-scrollbar style="height:100%">
      <div class="intrude-less">
        <header id="header" class="inner">
          <a href="javascript:;" class="profilepic blog-animation">
            <img src="../../../assets/logo.jpg" alt="Ten.X" class="js-avatar"/>
          </a>
          <nav class="blog-animation" style="margin: 10px auto;color: var(--main-6);font-weight: bold;">
            总文章数{{ count }}
          </nav>
          <nav class="header-nav blog-animation">
            <div class="social">
              <a href="https://gitee.com/TenXZW" target="_blank">
              <span class="github" title="Gitee">
                <i class="iconfont icongithub"></i>
              </span>
              </a>
              <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=473496220&site=qq&menu=yes">
                <span class="qq">
                    <i title="QQ" class="iconfont iconQQ1"></i>
                </span>
              </a>
              <el-popover class="weixin" placement="top" width="50" trigger="hover">
                <img
                    style="width: 150px; height: 150px;margin:0 auto;"
                    src="../../../assets/wx.png"
                />
                <i title="微信" slot="reference" class="iconfont iconweixin1"></i>
              </el-popover>
            </div>
            <div class="hidden-sm-and-down">
              <labels class="reveal-bottom"></labels>
            </div>
            <img class="blog-animation" style="width:100%;margin:10px 0;box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);"
                 src="https://p.pstatp.com/origin/fef1000211305d98073c"/>
          </nav>
        </header>
      </div>
    </el-scrollbar>
  </div>
</template>
<script>
// import "element-ui/lib/theme-chalk/display.css";
import Labels from "./Labels";

export default {
  name: "BlogLeft",
  components: {
    Labels,
  },
  data() {
    return {
      classList: [], //文章类型列表
      searchList: [], //文章标签类别
      isLoading: true, //是否
      searchInfoShow: false, //搜索结果栏是否显示,
      search: "",
      count: 0,
      loading: false,
    };
  },
  methods: {
    getarticle() {
      this.$http.get("/article/getarticleall").then(data => {
        this.count = data.data.length
      })
    },
  },
  created() {
    this.getarticle()
  },
};
</script>
<style lang="stylus" scoped>
@import '~@/assets/style/home.styl';

.class-search {
  position: relative;

  .el-input-group__append {
    padding: 0;
  }

  .search-info {
    transition all .5s
    width: 100%;
    position: absolute;
    left: 0;
    border-radius: 5px;
    padding: 5px 3px;
    box-sizing: border-box;
    margin: 0;
    background-color: #fff;
    z-index: 20;
    box-shadow: 8px 14px 38px rgba(231, 238, 239, 0.99);

    li {
      width: 100%;

      a {
        min-width: 50px !important;
        display: block;
        ellipsis();
        height: 25px;
        line-height: 25px;
        text-align: left;
        border-bottom: 1px dashed rgba(204, 204, 204, 0.278);
      }
    }
  }
}

@media (max-width: 992px)
  .left-col
    position relative !important
    width 100% !important
    min-height 500px !important
    top 0 !important

</style>
<style lang="stylus" scoped>
#header .header-nav .social {
  margin-top: 10px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.search-wrap {
  width: 100%;
  position: relative;
}

.search-wrap .search-ipt {
  width: 100%;
  color: var(--main-6);
  background: none;
  border: none;
  border-bottom: 2px solid var(--main-1);
  font-family: Roboto, serif;
  font-size: 1rem;
  line-height: 1.75;
}

.search-wrap .icon {
  position: absolute;
  right: 0;
  top: 7px;
  color: var(--main-4);
  cursor: pointer;
}

.left-col {
  position: fixed;
  top: 90px;
  bottom: 0px;
  left: 0px
  background: #fff;
  width: 20%;
  min-width: 200px;
  transition: all 0.2s ease-in;
}

.left-col .overlay {
  width: 100%;
  height: 100%;
  position: absolute;
}

.overlay img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 100px;
}

.left-col .intrude-less {
  width: 76%;
  text-align: center;
  margin: 0px auto;
  padding-top: 15px;
  position: relative;
}

.left-col #header {
  width: 100%;
  height: 100%;
  position: relative;
  border-bottom: 1px solid color-border;
  overflow: visible;
}

.left-col #header a {
  color: #696969;
}

.left-col #header a:hover {
  color: #b0a0aa;
}

.left-col #header .header-subtitle {
  text-align: center;
  color: #999;
  font-size: 14px;
  line-height: 25px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.left-col #header .header-menu {
  font-weight: 300;
  line-height: 31px;
  float: none;
  text-align: center;
}

.left-col #header .header-menu li {
  cursor: default;
}

.left-col #header .header-menu li a {
  font-size: 14px;
  min-width: 300px;
}

.left-col #header .header-smart-menu {
  font-size: 12px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.left-col #header .header-smart-menu a:after {
  content: '/';
}

.left-col #header .header-smart-menu a:last-child:after {
  content: '';
}

.left-col #header .profilepic {
  display: block;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #fff;
  text-align: center;
  border: 6px solid var(--main-6);
  padding: 2px;
  box-sizing: border-box;
}

.left-col #header .profilepic img {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
  transition: transform 1s ease-out;
}

.left-col #header .profilepic img.show {
  width: 100%;
  height: 100%;
  opacity: 1;
}

.left-col #header .profilepic img:hover {
  transform: rotate(1turn);
}

.left-col #header .header-author {
  text-align: center;
  margin: 0.67em 0;
  font-family: Roboto, serif;
  font-size: 30px;
  transition: 0.3s;
}

#header .header-nav {
  width: 100%;
  transition: transform 0.3s ease-in;
  padding-bottom: 20px;
}

#header .header-nav .social {
  margin-top: 10px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#header .header-nav .social span {
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  zoom: 1;
  margin: 0 8px 15px;
  transition: 0.3s;
  text-align: center;
  color: #fff;
  opacity: 0.7;
  width: 28px;
  height: 28px;
  line-height: 26px;
}

#header .header-nav .social span:hover {
  opacity: 1;
}

#header .header-nav .social span.weibo {
  background: #aaf;
  border: 1px solid #aaf;
}

#header .header-nav .social span.weibo:hover {
  border: 1px solid #aaf;
}

#header .header-nav .social span.github {
  background: #afb6ca;
  border: 1px solid #afb6ca;
}

#header .header-nav .social span.github:hover {
  border: 1px solid #909ab6;
}

#header .header-nav .social span.weixin {
  background: #4caf50;
  border: 1px solid #4caf50;
}

#header .header-nav .social span.weixin:hover {
  border: 1px solid #4caf50;
}

#header .header-nav .social span.qq {
  background: #34baad;
  border: 1px solid #34baad;
}

#header .header-nav .social span.qq:hover {
  border: 1px solid #34baad;
}

#header .header-nav .social span.gitee {
  background: #c71d23;
  border: 1px solid #c71d23;
}

#header .header-nav .social span.gitee:hover {
  border: 1px solid #c71d23;
}

.down-enter-active {
  transition: all 0.4s ease;
}

.down-leave-active {
  transition: all 0.4s ease;
}

.down-enter, .down-leave-to {
  transform: translateY(10%);
  opacity: 0.5;
}
</style>